package com.envcloud.p2;

import com.envcloud.dto.UserDto;
import com.envcloud.ui.DevServiceP1Ui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * File Name             :  LoginController
 * Author                :  luhao
 * Create Date           :  2017/8/15
 * Description           :
 * Reviewed By           :
 * Reviewed On           :
 * Version History       :
 * Modified By           :
 * Modified Date         :
 * Comments              :
 * CopyRight             : COPYRIGHT(c) www.envcloud.com.cn (环境云) All Rights Reserved
 * *******************************************************************************************
 */
@RestController
public class LoginController {
    @Autowired
    private DevServiceP1Ui devServiceP1Ui;

    @PostMapping("/login")
    public String login(@RequestBody  UserDto userDto) {
        return devServiceP1Ui.sayHallo(userDto);
    }
}
